<?php

class Application_Form_login extends Zend_Form {

    public function init() {
        $this->setName('login');
        
        $login = new Zend_Form_Element_Text('login');
        $login->setLabel('Login:')
                ->setattrib('size','30')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');
        $senha = new Zend_Form_Element_Password('senha');
        $senha->setLabel('Senha:')
                ->setattrib('size','10')
                ->setRequired(true)
                ->addFilter('StripTags')
                ->addFilter('StringTrim')
                ->addValidator('NotEmpty');
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Entrar')
                ->setAttrib('id', 'submitbutton');
        $this->addElements(array($login, $senha, $submit));
    }

}

